<?php
declare (strict_types = 1);

namespace app\common\model;

use think\Model;
use think\model\concern\SoftDelete;

/**
 * @mixin \think\Model
 */
class Order extends Model
{
    use SoftDelete;
    protected $deleteTime = 'delete_time';
    //


    public function invoice(){
        return $this->belongsTo(Invoice::class,'invoice_id');
    }


    public function user(){
        return $this->belongsTo(User::class,'user_id');
    }
}
